package jsyf.oa.entity.report.mineCustomer;

import com.alibaba.fastjson.JSONObject;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * Created by 92852 on 2018/4/5.
 */
@Entity
@Table(name = "T_WRT_CUSTOMER", schema = "oa", catalog = "")
public class CustomerReportEntity extends BaseEntity {

    private String name;
    private String tel;
    private String source;
    private String intentionModel;
    private String buyType;
    private String buyDate;
    private String fundCondition;
    private String existingDevice;
    private String otherCondition;
    private String provinceName;
    private String cityName;
    private String countyName;
    private String createUserId;
    private String customerLevel;
    private String customerCredit;
    private String customerType;
    private String intentionBrand;
    private String intentionDevice;
    private String throwReason;
    private int intentionFlag;
    private Date intentionTime;
    private String chance;
    private String businessDate;
    private String birthday;
    private String wechat;


    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getChance() {
        return chance;
    }

    public void setChance(String chance) {
        this.chance = chance;
    }

    public String getBusinessDate() {
        return businessDate;
    }

    public void setBusinessDate(String businessDate) {
        this.businessDate = businessDate;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getIntentionModel() {
        return intentionModel;
    }

    public void setIntentionModel(String intentionModel) {
        this.intentionModel = intentionModel;
    }

    public String getBuyType() {
        return buyType;
    }

    public void setBuyType(String buyType) {
        this.buyType = buyType;
    }

    public String getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate;
    }

    public String getFundCondition() {
        return fundCondition;
    }

    public void setFundCondition(String fundCondition) {
        this.fundCondition = fundCondition;
    }

    public String getExistingDevice() {
        return existingDevice;
    }

    public void setExistingDevice(String existingDevice) {
        this.existingDevice = existingDevice;
    }

    public String getOtherCondition() {
        return otherCondition;
    }

    public void setOtherCondition(String otherCondition) {
        this.otherCondition = otherCondition;
    }

    public String getCustomerLevel() {
        return customerLevel;
    }

    public void setCustomerLevel(String customerLevel) {
        this.customerLevel = customerLevel;
    }

    public String getCustomerCredit() {
        return customerCredit;
    }

    public void setCustomerCredit(String customerCredit) {
        this.customerCredit = customerCredit;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public String getIntentionBrand() {
        return intentionBrand;
    }

    public void setIntentionBrand(String intentionBrand) {
        this.intentionBrand = intentionBrand;
    }

    public String getIntentionDevice() {
        return intentionDevice;
    }

    public void setIntentionDevice(String intentionDevice) {
        this.intentionDevice = intentionDevice;
    }

    public String getThrowReason() {
        return throwReason;
    }

    public void setThrowReason(String throwReason) {
        this.throwReason = throwReason;
    }

    public int getIntentionFlag() {
        return intentionFlag;
    }

    public void setIntentionFlag(int intentionFlag) {
        this.intentionFlag = intentionFlag;
    }

    public Date getIntentionTime() {
        return intentionTime;
    }

    public void setIntentionTime(Date intentionTime) {
        this.intentionTime = intentionTime;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID",this.getId());
        obj.put("NAME",this.getName());
        obj.put("TEL",this.getTel());
        obj.put("SOURCE",this.getSource());
        obj.put("PROVINCE_NAME", getProvinceName());
        obj.put("CITY_NAME", getCityName());
        obj.put("COUNTY_NAME",getCountyName());
        obj.put("INTENTION_MODEL",this.getIntentionModel());
        obj.put("BUY_TYPE",this.getBuyType());
        obj.put("BUY_DATE",this.getBuyDate());
        obj.put("FUND_CONDITION",this.getFundCondition());
        obj.put("EXISTING_DEVICE",this.getExistingDevice());
        obj.put("OTHER_CONDITION",this.getOtherCondition());
        obj.put("CREATE_TIME",this.getCreateTime());
        obj.put("CREATE_USER_ID",this.getCreateUserId());
        obj.put("CUSTOMER_LEVEL",this.getCustomerLevel());
        obj.put("CUSTOMER_CREDIT",this.getCustomerCredit());
        obj.put("CUSTOMER_TYPE",this.getCustomerType());
        obj.put("INTENTION_BRAND",this.getIntentionBrand());
        obj.put("INTENTION_DEVICE",this.getExistingDevice());
        obj.put("THROW_REASON", getThrowReason());
        obj.put("INTENTION_FLAG", getIntentionFlag());
        obj.put("INTENTION_TIME", getIntentionTime());
        obj.put("CHANCE",getChance());
        obj.put("BUSINESS_DATE",getBusinessDate());
        obj.put("BIRTHDAY",getBirthday());
        obj.put("WECHAT",getWechat());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_WRT_CUSTOMER";
    }
    @Override
    public String getViewName() {
        return "V_WRT_CUSTOMER";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("NAME","name");
        obj.put("TEL","tel");
        obj.put("SOURCE","source");
        obj.put("INTENTION_MODEL","intentionModel");
        obj.put("BUY_TYPE","buyType");
        obj.put("BUY_DATE","buyDate");
        obj.put("PROVINCE_NAME", "provinceName");
        obj.put("CITY_NAME", "CITY_NAME");
        obj.put("COUNTY_NAME", "COUNTY_NAME");
        obj.put("FUND_CONDITION","fundCondition");
        obj.put("EXISTING_DEVICE","existingDevice");
        obj.put("OTHER_CONDITION","otherCondition");
        obj.put("CREATE_TIME","createTime");
        obj.put("CREATE_USER_ID","createUserId");
        obj.put("CUSTOMER_LEVEL","customerLevel");
        obj.put("CUSTOMER_CREDIT","customerCredit");
        obj.put("CUSTOMER_TYPE","customerType");
        obj.put("INTENTION_BRAND","intentionBrand");
        obj.put("INTENTION_DEVICE","intentionDevice");
        obj.put("THROW_REASON", "throwReason");
        obj.put("INTENTION_FLAG", "intentionFlag");
        obj.put("INTENTION_TIME", "intentionTime");
        obj.put("BUSINESS_DATE", "businessDate");
        obj.put("CHANCE", "chance");
        obj.put("BIRTHDAY", "birthday");
        obj.put("WECHAT", "wechat");
        return obj;
    }

}
